/*
 * copyright (c) 2009 Alexandr [Sn@ble] Surnin
 *
 * This file is part of CVP.
 *
 * CVP is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * CVP is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You can read the full version of GNU LGPL in
 * http://www.gnu.org/copyleft/lesser.html
 */


#include "trackswidget.h"

TracksWidget::TracksWidget(QWidget *parent) : QWidget(parent) {

    setFixedSize(1280, 640);

    mainLayout = new QVBoxLayout();

    timeLine = new TimeLine(this);
    mainLayout->addWidget(timeLine);
    for (int i = 0; i < 5; i++) {
        Track *testTrack = new Track(this);
        tracks.append(testTrack);
    }

    foreach(Track *tr, tracks) {
        mainLayout->addWidget(tr, 0, Qt::AlignLeft);
    }
    mainLayout->addStretch();

    setLayout(mainLayout);
}
